﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 业务系统的基于邮件审批的工作流的活动邮件记录
    /// </summary>
    [Serializable]
    public class wf_act_mail
    {
        #region 数据表名称
        public static readonly string TableName = "wf_act_mail";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// ID
            /// </summary>
            public static readonly string r_id = @"r_id";

            /// <summary>
            /// 活动审批用户ID
            /// </summary>
            public static readonly string douser_id = @"douser_id";

            /// <summary>
            /// 活动审批邮件ID
            /// </summary>
            public static readonly string mail_id = @"mail_id";

            /// <summary>
            /// 邮件处理标志：0、未处理；1、已发送
            /// </summary>
            public static readonly string mail_doflag = @"mail_doflag";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// ID
        /// </summary>
        public virtual string r_id { get; set; }

        /// <summary>
        /// 活动审批用户
        /// </summary>
        public virtual t_sys_user douser { get; set; }

        /// <summary>
        /// 活动审批邮件
        /// </summary>
        public virtual wf_act_mail mail { get; set; }

        /// <summary>
        /// 邮件处理标志：0、未处理；1、已发送
        /// </summary>
        public virtual int mail_doflag { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion
    }
}
